package com.ruoyi.mall.common.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;
import java.util.List;

@Document(indexName = "products")
public class DtsGoodsEs {

    @Id
    private String id;

    @Field(type = FieldType.Keyword)
    private String goodsSn;

    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    private String name;

    @Field(type = FieldType.Long)
    private Long categoryId;

    @Field(type = FieldType.Long)
    private Long brandId;

    @Field(type = FieldType.Text)
    private String gallery;

    @Field(type = FieldType.Keyword)
    private String keywords;

    @Field(type = FieldType.Text)
    private String brief;

    @Field(type = FieldType.Integer)
    private int isOnSale;

    @Field(type = FieldType.Short)
    private Short sortOrder;

    @Field(type = FieldType.Keyword)
    private String picUrl;

    @Field(type = FieldType.Keyword)
    private String shareUrl;

    @Field(type = FieldType.Integer)
    private int isNew;

    @Field(type = FieldType.Integer)
    private int isHot;

    @Field(type = FieldType.Keyword)
    private String unit;

    @Field(type = FieldType.Double)
    private Double counterPrice;

    @Field(type = FieldType.Double)
    private Double retailPrice;

    @Field(type = FieldType.Text)
    private String detail;

    @Field(type = FieldType.Date)
    private Date addTime;

    @Field(type = FieldType.Date)
    private Date updateTime;

    @Field(type = FieldType.Integer)
    private Integer browse;

    @Field(type = FieldType.Integer)
    private Integer sales;

    @Field(type = FieldType.Integer)
    private Boolean deleted;

    @Field(type = FieldType.Keyword)
    private String commpany;

    @Field(type = FieldType.Double)
    private Double wholesalePrice;

    @Field(type = FieldType.Byte)
    private Byte approveStatus;

    @Field(type = FieldType.Keyword)
    private String approveMsg;

    @Field(type = FieldType.Byte)
    private Byte brokerageType;

    @Field(type = FieldType.Double)
    private Double brokeragePrice;

    @Field(type = FieldType.Double)
    private String categoryname;

    // Getters and Setters


    public int getIsOnSale() {
        return isOnSale;
    }

    public void setIsOnSale(int isOnSale) {
        this.isOnSale = isOnSale;
    }

    public int getIsNew() {
        return isNew;
    }

    public void setIsNew(int isNew) {
        this.isNew = isNew;
    }

    public int getIsHot() {
        return isHot;
    }

    public void setIsHot(int isHot) {
        this.isHot = isHot;
    }

    public String getCategoryname() {
        return categoryname;
    }

    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsSn() {
        return goodsSn;
    }

    public void setGoodsSn(String goodsSn) {
        this.goodsSn = goodsSn;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getGallery() {
        return gallery;
    }

    public void setGallery(String gallery) {
        this.gallery = gallery;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public int getOnSale() {
        return isOnSale;
    }

    public void setOnSale(int onSale) {
        isOnSale = onSale;
    }

    public Short getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Short sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }

    public int getNew() {
        return isNew;
    }

    public void setNew(int aNew) {
        isNew = aNew;
    }

    public int getHot() {
        return isHot;
    }

    public void setHot(int hot) {
        isHot = hot;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getCounterPrice() {
        return counterPrice;
    }

    public void setCounterPrice(Double counterPrice) {
        this.counterPrice = counterPrice;
    }

    public Double getRetailPrice() {
        return retailPrice;
    }

    public void setRetailPrice(Double retailPrice) {
        this.retailPrice = retailPrice;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getBrowse() {
        return browse;
    }

    public void setBrowse(Integer browse) {
        this.browse = browse;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public String getCommpany() {
        return commpany;
    }

    public void setCommpany(String commpany) {
        this.commpany = commpany;
    }

    public Double getWholesalePrice() {
        return wholesalePrice;
    }

    public void setWholesalePrice(Double wholesalePrice) {
        this.wholesalePrice = wholesalePrice;
    }

    public Byte getApproveStatus() {
        return approveStatus;
    }

    public void setApproveStatus(Byte approveStatus) {
        this.approveStatus = approveStatus;
    }

    public String getApproveMsg() {
        return approveMsg;
    }

    public void setApproveMsg(String approveMsg) {
        this.approveMsg = approveMsg;
    }

    public Byte getBrokerageType() {
        return brokerageType;
    }

    public void setBrokerageType(Byte brokerageType) {
        this.brokerageType = brokerageType;
    }

    public Double getBrokeragePrice() {
        return brokeragePrice;
    }

    public void setBrokeragePrice(Double brokeragePrice) {
        this.brokeragePrice = brokeragePrice;
    }
}
